﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

using System.Data;
using System.Data.SQLite;

public partial class Desktop : UDCPage
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            DeskDataBind();
        }
    }

    private void DeskDataBind()
    {
        string sqlstr = "select FileUrl||'.aspx' as FileUrl,Title from ud_role_page_t where rid=:rid";
        SQLiteParameter[] spc = { 
                                    new SQLiteParameter(":rid", DbType.Int32)
                                };
        spc[0].Value = GetRid();
        desktopList.DataSource = SQLiteHelper.ExecuteDataset(sqlstr, spc);
        desktopList.DataBind();

    }
}